<?php 
$data = $this->data;
$json = json_encode($data['carpetas']);
echo $json;
?>